﻿@model JChatCore.User.User
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div id="content" class="roundedBorders">
    <div id="title" class="b2">
        <h2>Edit</h2>
    </div>
    <div id="innerContent">
        @using (Html.BeginForm())
        {
            <fieldset>
                <legend>User Information</legend>
                    <table style="margin-left:10px;">
                        <tr>
                            <td>RealName</td>
                            <td>@Html.TextBoxFor(c=>c.RealName)
                        </tr>
                        <tr>
                            <td>Email</td>
                            <td>@Html.TextBoxFor(c=>c.Email)</td>
                        </tr>
                        <tr>
                            <td>Address</td>
                            <td>@Html.TextBoxFor(c=>c.Address)</td>
                        </tr>
                        <tr>
                            <td>Sex</td>
                            <td>@Html.DropDownListFor(m => m.Sex, Model.SelectSex, "---Choose---")</td>
                        </tr>
                        <tr>
                            <td>City</td>
                            <td>@Html.DropDownListFor(m => m.CityID, Model.SelectListCity,"---Choose---")</td>
                        </tr>
                        <tr>
                            <td>Country</td>
                            <td>@Html.DropDownListFor(m => m.CountryID, Model.SelectListCountry,"---Choose---")</td>
                        </tr>
                        <tr>
                            <td>Birthday</td>
                            <td>@Html.TextBoxFor(c=>c.BirthDay)</td>
                        </tr>
                        <tr>
                            <td>Status</td>
                            <td>@Html.TextBoxFor(c=>c.Status)</td>
                        </tr>
                        <tr>
                            <td>Avatar</td>
                            <td>@Html.TextBoxFor(c=>c.Avatar, new{type = "file"})</td>
                        </tr>
                        <tr>
                            <td>Create Date</td>
                            <td>@Html.TextBoxFor(c=>c.CreateDate)</td>
                        </tr>
                        <tr>
                            <td>Other info</td>
                            <td>@Html.TextBoxFor(c=>c.OtherInFo)</td>
                        </tr>
                        <tr>
                            <td>Active</td>
                            <td>@Html.TextBoxFor(c=>c.Avatar)</td>
                        </tr>
                    </table>
                    <input type="submit" value="Save" style="margin-left:10px;"/>
            </fieldset>
        }
    </div>
</div>
